package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统文章（用户协议、关于我们）
 * </p>
 *
 * @author 作者
 * @since 2022-12-16
 */
@Getter
@Setter
@TableName("article")
@ApiModel(value = "Article对象", description = "系统文章（用户协议、关于我们）")
public class Article extends Model<Article> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("文章名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("文章内容(h5)")
    @TableField("content")
    private String content;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
